package com.ok.integral.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分详情表
 * </p>
 *
 * @author lhw
 * @since 2024-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ok_integral_detail")
@ApiModel(value="OkIntegralDetail对象", description="积分详情表")
public class OkIntegralDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "对应积分")
    @TableField("integral")
    private Double integral;

    @ApiModelProperty(value = "活动id")
    @TableField("activity_id")
    private Integer activityId;

    @ApiModelProperty(value = "帖子id")
    @TableField("card_id")
    private Long cardId;

    @ApiModelProperty(value = "评论id")
    @TableField("comment_id")
    private Long commentId;

    @ApiModelProperty(value = "奖品id")
    @TableField("prize_id")
    private Integer prizeId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
